﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using SyndicateDAO.Classes;
using SyndicateDAO.DatabaseObject;

namespace SyndicateDAO.DAO
{
    public class LineDAO : DataBaseHelper<line>
    {
        public IQueryable<line> SelectAllByDrawId(int dId)
        {
            return this.SelectAll().Where(c => c.drawId == dId);
        }
        public bool InsertLine(line l)
        {
            return this.Insert(l);
        }
        public bool UpdateLine()
        {
            return this.Update();
        }
        public bool DeleteLine(line l)
        {
            return this.Delete(l);
        }

    }
}
